package demo2;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: syyyy
 * Date: 2025-07-05
 * Time: 17:15
 */
public class PartClass {
    public void testMethod(){
        class Inner{
            public int date1;

            public void func(){
                System.out.println("func");
            }
        }
        Inner inner = new Inner();
    }
    //Inner inner =new Inner();这个类只能在包裹它的方法内使用
}
